package com.example.demo.service.impl;

import com.example.demo.service.DemoService;
import com.example.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author libo
 * @ClassName TestServiceImpl
 * @date 2018/11/13 17:47
 */

@Service
public class TestServiceImpl implements TestService {
    private final DemoService demoService;

    @Autowired
    public TestServiceImpl(DemoService demoService){
        this.demoService = demoService;
    }

    @Override
    public void test() {
        demoService.say("libo");
    }
}
